package com.mak001.lite.multiSkill.subs;

import org.rsbuddy.tabs.Inventory;
import org.rsbuddy.widgets.Bank;

import com.mak001.lite.multiSkill.Methods;
import extras.mak001.Time;
import com.mak001.lite.multiSkill.subScript;
import com.rsbuddy.event.events.MessageEvent;
import com.rsbuddy.script.methods.Players;
import com.rsbuddy.script.methods.Skills;

public class BoneBuryLite extends subScript {

	int bone;
	String boneName;
	int numBones;

	@Override
	public void execute() {
		if (Inventory.contains(bone)) {
			if (Bank.isOpen()) {
				Bank.close();
			} else {
				if (Players.getLocal().getAnimation() == -1) {
					if (Inventory.getItem(bone).interact("bury")) {
						numBones++;
						sleep(500);
					}
				}
			}
		} else {
			if (Bank.isOpen()) {
				if (Bank.getCount(bone) > 0) {
					Bank.withdraw(bone, 28);
				} else {
					Methods.stopSub();
				}
			} else {
				Bank.open();
			}
		}
	}

	@Override
	public int[] required() {
		return null;
	}

	public void setBone(int i, String s) {
		bone = i;
		boneName = s;
	}

	@Override
	public boolean canSwitch() {
		return true;
	}

	@Override
	public String getStatus() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int skill() {
		return Skills.PRAYER;
	}

	@Override
	public void messageRecieved(MessageEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String[] paintString() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Time getTime() {
		// TODO Auto-generated method stub
		return null;
	}

}